
<? include("automation.php");?>
<?  //ввод заголовков
	$lang="RUS";//временно. потом будет передаваться значение
	$main_transl= new translator($lang,"transl.txt", "main");
	$artikul_transl= new translator($lang,"artikul.txt","artikul");

	$vv_brutto = new mypage; //класс для вывода общих данных для страницы
	$title=$main_transl->translate("Ввод брутто значений");
	$vv_brutto->set_title($title);
	$vv_brutto->draw_header();
?>	

<body bgcolor="#CCCCCC">
<?//------------------------------------------?>
<form method="post">
<?
	$zagol=array("Ввод брутто значений", "Предприятие:", "Дата:", "Ресурсы:", "Смена:");
	$zagol=$main_transl->translate_string($zagol);
	$myinparr[] = new input_type_select;

	$myinparr[0]->name="fab_nom_inputfield";
	$myinparr[0]->type="text";	
	$myinparr[0]->value="136";
	$myinparr[0]->style="readonly";
	$myinparr[0]->ronly="readonly";
	$myinparr[0]->size="3";

	$myinparr[1]->name="fab_name_inputfield";
	$myinparr[1]->type="text";	
	$myinparr[1]->value="KNAUF GIPS KOLPINO";
	$myinparr[1]->style="readonly";
	$myinparr[1]->ronly="readonly";
	$myinparr[1]->size="30";	
	
	$myinparr[2]->name="date_inputfield";
	$myinparr[2]->type="text";	
	$myinparr[2]->value="3.12.2004";
	$myinparr[2]->style="readonly";
	$myinparr[2]->ronly="readonly";
	$myinparr[2]->size="10";		
	
	$myinparr[3]->name="res_nom_inputfield";
	$myinparr[3]->type="text";	
	$myinparr[3]->value="136";
	$myinparr[3]->style="readonly";
	$myinparr[3]->ronly="readonly";
	$myinparr[3]->size="3";

	$myinparr[4]->name="res_name_inputfield";
	$myinparr[4]->type="text";	
	$myinparr[4]->value="BS KOLPINO";
	$myinparr[4]->style="readonly";
	$myinparr[4]->ronly="readonly";
	$myinparr[4]->size="30";
	
	$myinparr[5]->name="smena_inputfield";
	$myinparr[5]->type="text";	
	$myinparr[5]->value="3";
	$myinparr[5]->style="readonly";
	$myinparr[5]->ronly="readonly";
	$myinparr[5]->size="10";

	$otkuda=array(0,1,2,2,1,2,0,1,2,2,1,2);//зададим последовательность вывода ячеек.
	$vv_brutto->shapka($zagol,$myinparr, $otkuda);
	$mytable1[]=new mytbl;
	
	$mytable1[0]->fieldname="art_nom_selectfield";
	$mytable1[0]->fieldheadname="№ арт.";
	$mytable1[0]->fieldtype="combined";
	$mytable1[0]->fieldlinkto="art_name_selectfield";
	$mytable1[0]->fieldtoshow="nom";
	
	$mytable1[1]->fieldname="art_desc_selectfield";
	$mytable1[1]->fieldheadname="Описание артикула";
	$mytable1[1]->fieldtype="combined";
	$mytable1[1]->fieldlinkto="art_nom_selectfield";
	$mytable1[1]->fieldtoshow="value";
	
	$mytable1[2]->fieldname="shirina_inputfield";
	$mytable1[2]->fieldheadname="Ширина";
	$mytable1[2]->fieldtype="inputfield";
	$mytable1[2]->fieldlinkto="";
	$mytable1[2]->fieldtoshow="";
	$mytable1[2]->inptblname=$mytable1[2]->fieldname;
	$mytable1[2]->inptbltype="text";
	$mytable1[2]->inptblvalue="";
	$mytable1[2]->inptblstyle="";
	$mytable1[2]->inptblronly=false;
	$mytable1[2]->inptblsize="5";

	$mytable1[3]->fieldname="pog_metr_inputfield";
	$mytable1[3]->fieldheadname="Пог. метры";
	$mytable1[3]->fieldtype="inputfield";
	$mytable1[3]->fieldlinkto="";
	$mytable1[3]->fieldtoshow="";
	$mytable1[3]->inptblname=$mytable1[3]->fieldname;
	$mytable1[3]->inptbltype="text";
	$mytable1[3]->inptblvalue="";
	$mytable1[3]->inptblstyle="";
	$mytable1[3]->inptblronly=false;
	$mytable1[3]->inptblsize="6";	
	
	$mytable1[4]->fieldname="";
	$mytable1[4]->fieldheadname="Шт.";
	$mytable1[4]->fieldtype="";
	$mytable1[4]->fieldlinkto="";
	$mytable1[4]->fieldtoshow="";
	
	$mytable1[5]->fieldname="";
	$mytable1[5]->fieldheadname="Продолж.";
	$mytable1[5]->fieldtype="";
	$mytable1[5]->fieldlinkto="";
	$mytable1[5]->fieldtoshow="";

	$mytable1[6]->fieldname="";
	$mytable1[6]->fieldheadname="Прич. прост.";
	$mytable1[6]->fieldtype="";
	$mytable1[6]->fieldlinkto="";
	$mytable1[6]->fieldtoshow="";
	
	$mytable1[7]->fieldname="";
	$mytable1[7]->fieldheadname="Место прост.";
	$mytable1[7]->fieldtype="";
	$mytable1[7]->fieldlinkto="";
	$mytable1[7]->fieldtoshow="";
	
	$vv_brutto->draw_table($mytable1, $artikul_transl, $main_transl);
?>
</form>
</body>
</html>